package com.itheima.service.impl;

import com.itheima.domain.UserInfo;
import com.itheima.mapper.UserInfoMapper;
import com.itheima.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//@Component的衍生注解 用于业务层
@Service
public class UserInfoServiceImpl implements UserInfoService {

    //注入获得的mapper
    @Autowired
    private UserInfoMapper userInfoMapper;


    public List<UserInfo> findAll() {
        return  userInfoMapper.findAll();
    }
}
